package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SelfDiagnosticRecordMapper;
import com.ruoyi.system.domain.SelfDiagnosticRecord;
import com.ruoyi.system.service.ISelfDiagnosticRecordService;

/**
 * 采集站异常Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-15
 */
@Service
public class SelfDiagnosticRecordServiceImpl implements ISelfDiagnosticRecordService 
{
    @Autowired
    private SelfDiagnosticRecordMapper selfDiagnosticRecordMapper;

    /**
     * 查询采集站异常
     * 
     * @param id 采集站异常主键
     * @return 采集站异常
     */
    @Override
    public SelfDiagnosticRecord selectSelfDiagnosticRecordById(Long id)
    {
        return selfDiagnosticRecordMapper.selectSelfDiagnosticRecordById(id);
    }

    /**
     * 查询采集站异常列表
     * 
     * @param selfDiagnosticRecord 采集站异常
     * @return 采集站异常
     */
    @Override
    public List<SelfDiagnosticRecord> selectSelfDiagnosticRecordList(SelfDiagnosticRecord selfDiagnosticRecord)
    {
        return selfDiagnosticRecordMapper.selectSelfDiagnosticRecordList(selfDiagnosticRecord);
    }

    /**
     * 新增采集站异常
     * 
     * @param selfDiagnosticRecord 采集站异常
     * @return 结果
     */
    @Override
    public int insertSelfDiagnosticRecord(SelfDiagnosticRecord selfDiagnosticRecord)
    {
        return selfDiagnosticRecordMapper.insertSelfDiagnosticRecord(selfDiagnosticRecord);
    }

    /**
     * 修改采集站异常
     * 
     * @param selfDiagnosticRecord 采集站异常
     * @return 结果
     */
    @Override
    public int updateSelfDiagnosticRecord(SelfDiagnosticRecord selfDiagnosticRecord)
    {
        return selfDiagnosticRecordMapper.updateSelfDiagnosticRecord(selfDiagnosticRecord);
    }

    /**
     * 批量删除采集站异常
     * 
     * @param ids 需要删除的采集站异常主键
     * @return 结果
     */
    @Override
    public int deleteSelfDiagnosticRecordByIds(Long[] ids)
    {
        return selfDiagnosticRecordMapper.deleteSelfDiagnosticRecordByIds(ids);
    }

    /**
     * 删除采集站异常信息
     * 
     * @param id 采集站异常主键
     * @return 结果
     */
    @Override
    public int deleteSelfDiagnosticRecordById(Long id)
    {
        return selfDiagnosticRecordMapper.deleteSelfDiagnosticRecordById(id);
    }
}
